#
#
class Solution:

    def two(self, n):
        tot = 1
        for i in range(n):
            tot *= 2
        print(tot)
        return tot

    def add(self, a, b):
        """
        type a : str
        type b : str
        :return:
        """
        a_len = len(a)
        b_len = len(b)
        a_ = 0
        b_ = 0
        for i in range(a_len):
            a_cell = a[a_len-i-1:a_len-i]
            aa = int(a_cell)
            if aa != None:
                a_ += aa*self.two(i)
        print('------')
        for o in range(b_len):
            b_cell = b[b_len-o-1:b_len-o]
            bb = int(b_cell, 10)
            if bb != None:
                b_ += bb*self.two(o)
        tt = a_ + b_
        res = bin(tt).replace('0b', '')
        # print(res)
        return res
# class Solution:
#     def addBinary(self, a, b):
#         return '{0:b}'.format(int(a, 2) + int(b, 2))


if __name__ == '__main__':

    sol = Solution()
    print(sol.add(a='10', b='1011'))